#!user/bin/env python3
# -- coding: utf-8 --
# 类的属性-成员变量
# 类的行为-成员方法


# class Student(object):
#
#     name = None
#
#     def sya_hi(self):
#         print(f"大家好，我是{self.name},欢迎大家，多多关照")
#
#     def say_other(self, msg):
#         print(f"大家好，我是{self.name},{msg}")
#
#
# stu = Student()
# stu.name = "张三"
# # stu.sya_hi()
# stu.say_other("切克闹")
#
# stu1 = Student()
# stu.name = "吕布"
# # stu.sya_hi()
# stu.say_other("人中龙凤，马中赤兔")

class Student:
    name = None

    def say_hi(self, msg):
        print(f"大家好，我是{self.name}, {msg}")


stu1 = Student()
stu1.name = "aliy"
stu1.say_hi("爱你呀，系哟")

stu2 = Student()
stu2.name = "唐三藏"
stu2.say_hi("我的肉可以长生不老")
